﻿using System.Web.Mvc;
using OpenWaves.Video;

namespace OpenWaves.EPiServer.VideoProperty
{
    public class VideoInfoController : Controller   
    {
        public JsonResult GetVideoMetaData(string videoUrl)
        {
            var videoApi = ServiceLocator.Resolve<IVideoWebsiteApi>();
            return Json(videoApi.GetVideo(videoUrl), JsonRequestBehavior.AllowGet);
        }
    }
}